import { Sprite } from 'cc';
import { _decorator, Component, Node } from 'cc';
import { LocalizeManager } from './LocalizeManager';
const { ccclass, property,disallowMultiple,menu } = _decorator;

@ccclass('LocalizeSprite')
// @executeInEditMode(true)
@disallowMultiple(true)
@menu("Locail/LocailzeLabel")
export class LocalizeSprite extends Component {
    
    start() {
        let sprite = this.node.getComponent(Sprite);
        if(sprite){
            LocalizeManager.updateSpriteFrame(sprite);
        }
    }   

    update(deltaTime: number) {
        
    }
}


